package com.example.yilanchatserver.business.freechat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class BusinessException extends RuntimeException{

    private String errorCode;

    public BusinessException(BusinessErrorCodes businessErrorCodes) {
        this.errorCode = businessErrorCodes.getCode();
    }
}
